
(function(YuXi){
	var detailWri={};
	detailWri.post=function(objectFouW,value){

		var newName="";
		var arr=[];
		var span=$.trim(value);

		arr=YuXi.recursionSource.flagsource(value,2,objectFouW);
		for(var yx=arr.length-1;yx>=0;yx--)
		{
			
			newName=newName+"-"+arr[yx];

		}
		var title=newName+"-";
		title=title.substring(1,title.length);
		return title;




	}
	detailWri.get=function(objectSouW,value){

		var newName="";
		var arr=[];
		var span="";
		for(var ob=0;ob<objectSouW.length;ob++)
		{
			if(value==0)
			{
				span="";
				break;
			}
			if(value==objectSouW[ob].id)
			{
				span=objectSouW[ob].name;
			}
		}

		arr=YuXi.recursionSource.flagsource(value,1,objectSouW);
		for(var yx=arr.length-1;yx>=0;yx--)
		{
	
			newName=newName+"-"+arr[yx];

		}
		var title=newName+"-"+span;
		title=title.substring(1,title.length);
		return title;




	}
	YuXi.detailWri=detailWri;
})(YuXi);

		